<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<link href="themes01/default/clientPublic.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/codeMgr.css" rel="stylesheet" type="text/css"/>
<link href="themes01/default/tabSwitch.css" rel="stylesheet" type="text/css"/>
<link rel="StyleSheet" href="themes01/default/dtree.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="themes01/default/pstyle.css">
<script type="text/javascript" src="javascripts01/dtree_user.js"></script>
<script type="text/javascript" src="javascripts01/jquery.js"></script>
<script type="text/javascript" src="javascripts01/common.js"></script>
<script language="javascript" type="text/javascript" src="DatePicker/WdatePicker.js"></script>
<title>Office 515158 2011 OA办公系统</title>
 
</head>
<body>
<div id="Holder">
<div id="MainPage">

 
 
<div id="Subnav">
 
<ul>
<?php
//定义标题
$nums=79;
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."menu where fatherid='11' and menutype='0' ORDER BY menunum Asc");
	while ($row = $db->fetch_array($query)) {
?>
<li><a href="<?=$row[menuurl]?>"  <? if($nums==$row[menuid]){?> id="Subnavb"<? }?>><?=$row[menuname]?></a></li>
<?php
	}
?>


</ul>
</div>
<table width="100%" height="400" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#FDFDFD;">
  <tr>
    <td width="25%" align="left" valign="top" style="padding-left:10px; padding-top:6px;">
	  <table width="24%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="7%" align="center"><img src="themes01/default/images/green_arrow.gif" width="17" height="17" /></td>
          
          <td width="64%" height="30" align="left" style="font-size:14px; font-weight:bold; color:#124164;">档案列表</td>
		  <td width="29%" align="left" style="font-size:12px;color:#124164;"><a href="javascript: a.openAll();">展开</a> | <a href="javascript: a.closeAll();">收缩</a></td>
        </tr>
      </table>

	  <div style="float:left; width:96%; background-color:#FFFFFF; border:1px solid #999999; height:375px;overflow:hidden;overflow-y:scroll;">
	  <table width="98%" border="0" cellspacing="0" cellpadding="0" >
        <tr>
          <td align="left" style="padding-left:6px; padding-top:6px;"><div class="dtree">
	<script type="text/javascript">
		<!--
		a = new dTree('a');
		a.add(0,-1,'<?=GET_INC_CONFIG_INFO(name)?>','#');	
		   <?php
	        $query = $db->query("SELECT * FROM ".DB_TABLEPRE."department where father='0' ORDER BY id Asc  ");
			while ($row = $db->fetch_array($query)) {
			$rsfnow = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."department where father='".$row[id]."' ORDER BY id desc limit 0,1");

			?>
		   a.add(<?=$row[id]?>,0,'<?=$row[name]?>','#');
		
		   
		   <?php 
		   //调用下级文件夹
		   if($rsfnow[id]!=''){
	       	get_document_list($row['id'],0,0);
	       }
		   else{
		    get_user_list($row['id']);
		   }

		   ?>
		   
		   
		   
		
<?php }?>
			
		
		a.add(9999999999,0,'新建档案账号','admin.php?ac=add&fileurl=user','','','themes01/default/images/green_arrow.gif');
		document.write(a);


		//-->
	</script>
</div></td>
        </tr>
      </table>  
</div>
</td>
    <td width="75%" align="left" valign="top">

	<div style="float:left; width:100%; background-color:#FFFFFF;height:412px;overflow:hidden;overflow-y:scroll;">
<?php if($_GET["userid"]!=''){?>	  <table class="TableBlock" style="width:90%;" align="center">
  <tr>
    <td  colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="admin.php?ac=file_edit&fileurl=user&do=edit&userid=<?=$rs["uid"]?>">编辑档案</a> | <a href="admin.php?ac=add&fileurl=user">新建档案</a></td>
  </tr>
   <tr>
    <td nowrap class="TableHeader" colspan="6"><b>&nbsp;基本信息</b></td>
  </tr>
  
  <tr>
    <td nowrap align="left" width="120" class="TableContent">OA用户名：</td>
    <td nowrap align="left" class="TableData" width="180"><?=$rs["username"]?></td>
    <td nowrap align="left" width="180" class="TableContent">部门：</td>
    <td class="TableData"  colspan="2"><?=get_inc_department_name($rs['departmentid'])?></td>
    <td class="TableData" align="center" rowspan="6" colspan="1">
      <?php if($rs["photo"]!=''){?>
      <img src="<?=$rs["photo"]?>" width="160" height="180" />
      <?php }else{?>
      <center>暂无照片</center><?php }?>    </td>
  </tr>
  <tr>
  	<td nowrap align="left" width="120" class="TableContent">编号：</td>
    <td nowrap align="left" class="TableData" width="180"><?=$rs["number"]?></td>  
    <td nowrap align="left" width="180" class="TableContent">工号：</td>
    <td class="TableData" width="180" colspan="2"><?=$rs["labornumber"]?></td>          
  </tr>
  <tr>
  	<td nowrap align="left" width="120" class="TableContent">姓名：</td>
    <td class="TableData" width="180"><?=$rs["name"]?></td>  	
    <td nowrap align="left" width="180" class="TableContent">英文名：</td>
    <td class="TableData" width="180" colspan="2"><?=$rs["enname"]?></td>         
  </tr>
  <tr>
  	<td nowrap align="left" width="120" class="TableContent">身份证号：</td>
    <td class="TableData" width="180" ><?=$rs["idcard"]?></td>  
    <td nowrap align="left" width="180" class="TableContent">出生日期：</td>
    <td class="TableData" width="180" colspan="2"><?=$rs["birthdate"]?> </td>             
  </tr>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">年龄：</td>
    <td class="TableData" width="180"><?=$rs["age"]?></td>
    <td nowrap align="left" width="180" class="TableContent">性别：</td>
    <td class="TableData" width="180" colspan="2"><?=$rs["sex"]?></td>       
  </tr>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">籍贯：</td>
    <td class="TableData" width="180" ><?=$rs["nativeplace"]?></td>    
    <td nowrap align="left" width="180" class="TableContent">民族：</td>
    <td class="TableData" width="180" colspan="2"><?=$rs["nationality"]?></td>            
  </tr>  
  <tr>
    <td nowrap align="left" width="120" class="TableContent">婚姻状况：</td>
    <td class="TableData" width="180">
       <?=$rs["marriage"]?>                    </td>
    <td nowrap align="left" width="180" class="TableContent">健康状况：</td>
    <td class="TableData"  width="180" colspan="3"><?=$rs["health"]?></td>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">政治面貌：</td>
    <td class="TableData" width="180"><?=$rs["politics"]?></td>
    <td nowrap align="left" width="180" class="TableContent">入党时间：</td>
    <td class="TableData"  width="180" colspan="3"><?=$rs["partydate"]?></td>
  </tr>
  <tr>
  	<td nowrap align="left" width="120" class="TableContent">户口类别：</td>
    <td class="TableData"  width="180"><?=$rs["regtype"]?></td> 
    <td nowrap align="left" width="180" class="TableContent">户口所在地：</td>
    <td class="TableData"  width="180" colspan="3"><?=$rs["regaddress"]?></td>
  </tr>
  
  <tr>
    <td nowrap class="TableHeader" colspan="6"><b>&nbsp;职位情况及联系方式：</b></td>
  </tr>
  <tr>
  	<td nowrap align="left" width="120" class="TableContent">工种：</td>
    <td class="TableData"  width="180"><?=$rs["worktype"]?></td>
    <td nowrap align="left" width="180" class="TableContent">行政级别：</td>
    <td class="TableData"  width="180"><?=$rs["administration"]?></td>
    <td nowrap align="left" width="180" class="TableContent">员工类型：</td>
    <td class="TableData"><?=get_inc_office_name($rs["stafftype"])?> </td>        
  </tr>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">职位：</td>
    <td class="TableData"  width="180"><?=$rs["position"]?></td>
    <td nowrap align="left" width="180" class="TableContent">职称：</td>
    <td class="TableData"  width="180"><?=$rs["title"]?></td>
    <td nowrap align="left" width="180" class="TableContent">入职时间：</td>
    <td class="TableData"  width="180"><?=$rs["dutydate"]?></td>                 
  </tr>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">本单位工龄：</td>
    <td class="TableData"  width="180"><?=$rs["jobseniority"]?></td>
    <td nowrap align="left" width="180" class="TableContent">起薪时间：</td>
    <td class="TableData"  width="180"><?=$rs["startingpay"]?></td>
    <td nowrap align="left" width="180" class="TableContent">在职状态：</td>
    <td class="TableData"  width="180"><?=$rs["inoffice"]?></td>               
  </tr>
  <tr>
    <td nowrap align="left" width="120" class="TableContent">总工龄：</td>
    <td class="TableData"  width="180"><?=$rs["sumseniority"]?></td>
    <td nowrap align="left" width="180" class="TableContent">参加工作时间：</td>
    <td class="TableData"  width="180"><?=$rs["participationwork"]?></td>
    <td nowrap align="left" width="180" class="TableContent">联系电话：</td>
    <td class="TableData"  width="180"><?=$rs["tel"]?></td>                
  </tr>     
  <tr>        
    <td nowrap align="left" width="120" class="TableContent">手机号码：</td>
    <td class="TableData"  width="180" ><?=$rs["phone"]?></td>
    <td nowrap align="left" width="180" class="TableContent">传真号码：</td>
    <td class="TableData"  width="180"><?=$rs["fax"]?></td>
    <td nowrap align="left" width="180" class="TableContent">MSN/QQ：</td>
    <td class="TableData"  width="180" ><?=$rs["qq"]?></td>                   
  </tr>
<tr>
    <td nowrap align="left" width="120" class="TableContent">电子邮件：</td>
    <td class="TableData"  width="180"><?=$rs["email"]?></td>
    <td nowrap align="left" width="180" class="TableContent">家庭地址：</td>
    <td class="TableData"  width="180" colspan="3"><?=$rs["address"]?></td>                
  </tr>  
  <tr>     
    <td nowrap align="left" width="120" class="TableContent">其他联系方式：</td>
    <td colspan="5" class="TableData"><?=$rs["contact"]?></td> 
    </tr>
  <tr>
    <td nowrap class="TableHeader" colspan="6"><b>&nbsp;教育背景：</b></td>
  </tr>              
  <tr>
    <td nowrap align="left" width="120" class="TableContent">学历：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["schoolrecord"])?></td>
    <td nowrap align="left" width="180" class="TableContent">学位：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["degree"])?></td>
    <td nowrap align="left" width="180" class="TableContent">毕业时间：</td>
    <td class="TableData"  width="180"><?=$rs["draduationdate"]?> </td>                 
  </tr>       
  <tr>
    <td nowrap align="left" width="120" class="TableContent">毕业学校：</td>
    <td class="TableData"  width="180"><?=$rs["draduationschool"]?></td>
    <td nowrap align="left" width="180" class="TableContent">专业：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["specialized"])?></td>
    <td nowrap align="left" width="180" class="TableContent">计算机水平：</td>
    <td class="TableData"  width="180"><?=$rs["level"]?></td>                 
  </tr>       
  <tr>
    <td nowrap align="left" width="120" class="TableContent">外语语种1：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["language1"])?></td>
    <td nowrap align="left" width="180" class="TableContent">外语语种2：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["language2"])?></td>
    <td nowrap align="left" width="180" class="TableContent">外语语种3：</td>
    <td class="TableData"  width="180"><?=get_inc_office_name($rs["language3"])?></td>                 
  </tr>       
  <tr>
    <td nowrap align="left" width="120" class="TableContent">外语水平1：</td>
    <td class="TableData"  width="180"><?=$rs["level1"]?></td>
    <td nowrap align="left" width="180" class="TableContent">外语水平2：</td>
    <td class="TableData"  width="180"><?=$rs["level2"]?></td>
    <td nowrap align="left" width="180" class="TableContent">外语水平3：</td>
    <td class="TableData"  width="180"><?=$rs["level3"]?></td>                 
  </tr>  
  <tr>
    <td nowrap align="left" width="120" class="TableContent">特长：</td>
    <td class="TableData"  width="180" colspan="5"><?=$rs["specialskill"]?></td>             
  </tr>
         
  
<!--  <tr>
    <td nowrap align="left" colspan="6" class="TableHeader">备注：</td>
  </tr>   
  <tr>
    <td nowrap class="TableData" colspan="6"></td>               
  </tr>  -->                                   
  <tr>
  	<td nowrap  class="TableHeader" colspan="6">附件文档：</td>
  </tr>
  <tr>    
    <td nowrap align="left" class="TableData" colspan="6">
<?php if($rs["appendix"]!=''){?>
<a href="<?=$rs["appendix"]?>" target="_blank">附件下载</a>
<?php }else{?>无附件<?php }?>    </td>
  </tr>         
  <tr>
    <td nowrap align="left" class="TableHeader" colspan="6">简历：</td>                
  </tr>       
  <tr>
    <td nowrap class="TableData" colspan="6" height="100"><?=$rs["resume"]?></td>                 
  </tr>
</table>

<?php }else{?>
<table class="TableBlock" style="width:90%;" align="center">
  <tr>
    <td  colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;请从左边选择您要管理的档案!</td>
  </tr>
   <tr>
    <td nowrap class="TableHeader" colspan="6"><b>&nbsp;档案管理</b></td>
  </tr>
  </table>
  <?php }?>


</div>

	
	
	
	
	
	
	</td>
  </tr>
</table>
</div>
</div>

 
</body>
</html>
